import axios from "axios";
const http = axios.create({
  baseURL: "https://fc-mp-827be4c1-176f-4e1f-985a-621b4417eadf.next.bspapp.com",
});

//  请求拦截器
http.interceptors.request.use(function (config) {
  config.headers["uni-id-token"] = localStorage.getItem("token");
  return config;
})


http.interceptors.response.use((res) => {

  // console.log(res)
  // console.log('---------------------------------------')
  return res.data
})

export default http;